package match

import (
	. "leaf/common"
	"leaf/core"
	"leaf/server/match/rpc"
	. "leaf/server/match/service"
)

func Run(path string) {
	//初始化配置，log
	closer := core.Init(path, SERVER_TYPE_MAP)
	if closer != nil {
		defer closer()
	}
	//初始化rpc
	rpc.InitRpc()

	core.Run(NewMatchService("Match"))
}
